package com.kma.summer2012.client.services.catalogOfWorks;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.kma.summer2012.shared.model.UICrumbsWorkItem;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public interface CrumbsCatalogOfWorksServiceAsync {
    void saveWorkItem(UICrumbsWorkItem work, AsyncCallback<Void> async);

    void getAllWorks(AsyncCallback<Set<UICrumbsWorkItem>> async);

    void getWorkById(int id, AsyncCallback<UICrumbsWorkItem> async);

    void getAllCategories(AsyncCallback<List<String>> async);

    void checkForSubcategory(int subCategoryId, UICrumbsWorkItem element, AsyncCallback<Boolean> async);

    void deleteAllWorks(ArrayList<Integer> idList, AsyncCallback<Boolean> asyncCallback);
}
